package com.jinlejia.erp.ui.house.prospect.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author 王进 on 2019/1/14.
 */

public class ReasonBean implements Parcelable{
    private String typeCode;
    private String valueName;
    private String valuel;
    public ReasonBean(){
        //empty;
    }
    protected ReasonBean(Parcel in) {
        typeCode = in.readString();
        valueName = in.readString();
        valuel = in.readString();
    }

    public static final Creator<ReasonBean> CREATOR = new Creator<ReasonBean>() {
        @Override
        public ReasonBean createFromParcel(Parcel in) {
            return new ReasonBean(in);
        }

        @Override
        public ReasonBean[] newArray(int size) {
            return new ReasonBean[size];
        }
    };

    public String getTypeCode() {
        return typeCode;
    }

    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }

    public String getValueName() {
        return valueName;
    }

    public void setValueName(String valueName) {
        this.valueName = valueName;
    }

    public String getValuel() {
        return valuel;
    }

    public void setValuel(String valuel) {
        this.valuel = valuel;
    }

    @Override
    public String toString() {
        return valueName;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(typeCode);
        dest.writeString(valueName);
        dest.writeString(valuel);
    }
}
